import { useXxxStore } from './store';

function App() {
  const { aaa, updateAaa } = useXxxStore(state => ({
    aaa: state.aaa,
    updateAaa: state.updateAaa
  }));

  const onChange = (event) => {
    updateAaa(event.target.value);
  };

  return (
    <div className="App">
      <input onChange={onChange}></input>
      hello, {aaa}
    </div>
  );
}

export default App;
